﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HeartStone.BaseDomain;

namespace HeartStone.Units.Hero
{
	public class HeroMege : BaseDomain.BaseHero
	{
		/// <summary>
		/// 构造函数
		/// </summary>
		public HeroMege()
			: base()
		{
			Name = "法师";
			//初始化自己的技能
			HeroSkill = new MegeSkill(this);
		}
	}

	public class MegeSkill : BaseHeroSkill
	{

		public MegeSkill(BaseHero pHero)
			: base(pHero)
		{
			TargetObject = TargetedObject.AllUnit;
		}

		/// <summary>
		/// 法师的技能
		/// </summary>
		public override void Skill(BaseUnit taregted)
		{
			Console.WriteLine("{0}使用了技能，目标{1}", thisHero.Name, taregted.Name);
			taregted.Defense(taregted, thisHero, 1);

		}
	}
}
